! COSA Namespace
{anchor:tbl_contents_0}
!! Classes
* [BusinessEntity|#lib_businessentity_0]
* [ConditionExpression|#lib_conditionexpression_0]
* [DeletedMetadataFilters|#lib_deletedmetadatafilters_0]
* [EntityCollection|#lib_entitycollection_0]
* [EntityFilters|#lib_entityfilters_0]
* [EntityReference|#lib_entityreference_0]
* [ExecuteMultipleSettings|#lib_executemultiplesettings_0]
* [FilterExpression|#lib_filterexpression_0]
* [LinkEntity|#lib_linkentity_0]
* [OptionSetValue|#lib_optionsetvalue_0]
* [OrderExpression|#lib_orderexpression_0]
* [PageInfo|#lib_pageinfo_0]
* [QueryExpression|#lib_queryexpression_0]
* [Relationship|#lib_relationship_0]
* [XrmBoolean|#lib_xrmboolean_0]
* [XrmDateTime|#lib_xrmdatetime_0]
* [XrmDecimal|#lib_xrmdecimal_0]
* [XrmDouble|#lib_xrmdouble_0]
* [XrmGuid|#lib_xrmguid_0]
* [XrmMoney|#lib_xrmmoney_0]
* [XrmString|#lib_xrmstring_0]
* [XrmWholeNumber|#lib_xrmwholenumber_0]
{anchor:lib_businessentity_0}
!! BusinessEntity
!!! Constructor
!!!! new COSA.BusinessEntity(logicalName, id, attributes)
|| Param || Type || Description ||
| logicalName | {{string}} | Entity logical name |
| id | {{string}} | Guid-like string as Entity unique identifier |
| attributes | {{object}} | Entity attributes |
!!! Properties
|| Name || Type || Description ||
| id | {{string}} | Entity unique identifier |
| logicalName | {{string}} | Entity logical name |
| attributes | {{object}} | Entity attributes |
[Back to Top|#tbl_contents_0]
{anchor:lib_conditionexpression_0}
!! ConditionExpression
!!! Constructor
!!!! new COSA.ConditionExpression(attributeName, operator, values)
|| Param || Type || Description ||
| attributeName | {{string}} | Attribute logical name |
| operator | [COSA.Const.ConditionOperator|COSA.Const Namespace#enum_conditionoperator_0] | Condition Operator |
| values | Array.<*>  | Values |
!!! Properties
|| Name || Type || Description ||
| attributeName | {{string}} | Attribute logical name |
| operator | [COSA.Const.ConditionOperator|COSA.Const Namespace#enum_conditionoperator_0] | Condition Operator |
| values | Array.<*> | Values |
[Back to Top|#tbl_contents_0]
{anchor:lib_deletedmetadatafilters_0}
!! DeletedMetadataFilters
!!! Constructor
!!!! new COSA.DeletedMetadataFilters(value)
|| Param || Type || Description ||
| value | {{string}} | Value |
!!! Properties
|| Name || Type || Description ||
| value | {{string}} | Value |
[Back to Top|#tbl_contents_0]
{anchor:lib_entitycollection_0}
!! EntityCollection
!!! Constructor
!!!! new COSA.EntityCollection(items)
|| Param || Type || Description ||
| items | {{Array.<}}[COSA.BusinessEntity|#lib_businessentity_0]{{>}} | Initial items |
!!! Properties
|| Name || Type || Description ||
| entityName | {{string}} | Entity logical name |
| minActiveRowVersion | {{number}} | Min active row version |
| moreRecords | {{boolean}} | More records |
| pagingCookie | {{string}} | Paging cookie |
| totalRecordCount | {{number}} | Total Record Count |
| totalRecordCountLimitExceeded | {{boolean}} | Total record count limit exceeded |
[Back to Top|#tbl_contents_0]
{anchor:lib_entityfilters_0}
!! EntityFilters
!!! Constructor
!!!! new COSA.EntityFilters(filtersString)
|| Param || Type || Description ||
| filtersString | {{string}} | Filters value |
!!! Properties
|| Name || Type || Description ||
| value | {{string}} | Filters value |
[Back to Top|#tbl_contents_0]
{anchor:lib_entityreference_0}
!! EntityReference
!!! Constructor
!!!! new COSA.EntityReference(logicalName, id)
|| Param || Type || Description ||
| logicalName | {{string}} | Entity Logical Name |
| id | {{string}} | Entity unique identifier (GUID) |
!!! Properties
|| Name || Type || Description ||
| logicalName | {{string}} | Entity Logical Name |
| id | {{string}} | Entity unique identifier (GUID) |
| name | {{string}} | Formatted value |
[Back to Top|#tbl_contents_0]
{anchor:lib_executemultiplesettings_0}
!! ExecuteMultipleSettings
!!! Constructor
!!!! new COSA.ExecuteMultipleSettings(continueOnError, returnResponses)
|| Param || Type || Description ||
| continueOnError | {{boolean}} | Continue On Error |
| returnResponses | {{boolean}} | Return responses |
!!! Properties
|| Name || Type || Description ||
| continueOnError | {{boolean}} | Continue On Error |
| returnResponses | {{boolean}} | Return responses |
[Back to Top|#tbl_contents_0]
{anchor:lib_filterexpression_0}
!! FilterExpression
!!! Constructor
!!!! new COSA.FilterExpression(filterOperator, conditions, filters)
|| Param || Type || Description ||
| filterOperator | [COSA.Const.FilterOperator|COSA.Const Namespace#enum_filteroperator_0] | Filter operator |
| conditions | [COSA.ConditionExpression|#lib_conditionexpression_0] | Conditions |
| filters | [COSA.FilterExpression|#lib_filterexpression_0] | Filters |
!!! Properties
|| Name || Type || Description ||
| filterOperator | [COSA.Const.FilterOperator|COSA.Const Namespace#enum_filteroperator_0] | Filter operator |
| conditions | [COSA.ConditionExpression|#lib_conditionexpression_0] | Conditions |
| filters | [COSA.FilterExpression|#lib_filterexpression_0] | Filters |
[Back to Top|#tbl_contents_0]
{anchor:lib_linkentity_0}
!! LinkEntity
!!! Constructor
!!!! new COSA.LinkEntity(initials)
|| Param || Type || Description ||
| initials | {{object}} | Initial values |
| initials.columns | {{COSA.ColumnSet}} | Columns |
| initials.entityAlias | {{string}} | Entity Alias |
| initials.joinOperator | [COSA.Const.JoinOperator|COSA.Const Namespace#enum_joinoperator_0] | Join operator |
| initials.linkCriteria | [COSA.FilterExpression|#lib_filterexpression_0] | Link Criteria |
| initials.linkEntities | Array.<[COSA.LinkEntity|#lib_linkentity_0]> | Link entities |
| initials.linkFromAttributeName | {{string}} | Link from attribute name |
| initials.linkToAttributeName | {{string}} | Link to attribute name |
| initials.linkFromEntityName | {{string}} | Link from entity name |
| initials.linkToEntityName | {{string}} | Link to entity name |
!!! Properties
|| Name || Type || Description ||
| columns | {{COSA.ColumnSet}} | Columns |
| entityAlias | {{string}} | Entity Alias |
| joinOperator | [COSA.Const.JoinOperator|COSA.Const Namespace#enum_joinoperator_0] | Join operator |
| linkCriteria | [COSA.FilterExpression|#lib_filterexpression_0] | Link Criteria |
| linkEntities | Array.<[COSA.LinkEntity|#lib_linkentity_0]> | Link entities |
| linkFromAttributeName | {{string}} | Link from attribute name |
| linkToAttributeName | {{string}} | Link to attribute name |
| linkFromEntityName | {{string}} | Link from entity name |
| linkToEntityName | {{string}} | Link to entity name |

[Back to Top|#tbl_contents_0]
{anchor:lib_optionsetvalue_0}
!! OptionSetValue
!!! Constructor
!!!! new COSA.OptionSetValue(value, formattedValue)
|| Param || Type || Description ||
| value | {{number}} | OptionSetValue |
| formattedValue | {{string}} | OptionSet formatted value |
!!! Properties
|| Name || Type || Description ||
| value | {{number}} | OptionSetValue |
| formattedValue | {{string}} | Formatted OptionSet value |
[Back to Top|#tbl_contents_0]
{anchor:lib_orderexpression_0}
!! OrderExpression
!!! Constructor
!!!! new COSA.OrderExpression(attributeName, orderType)
|| Param || Type || Description ||
| attributeName | {{string}} | Attribute Logical Name |
| orderType | [COSA.Const.OrderType|COSA.Const Namespace#enum_ordertype_0] | Order Type |
!!! Properties
|| Name || Type || Description ||
| attributeName | {{string}} | Attribute Logical Name |
| orderType | [COSA.Const.OrderType|COSA.Const Namespace#enum_ordertype_0] | Order Type |

[Back to Top|#tbl_contents_0]
{anchor:lib_pageinfo_0}
!! PageInfo
!!! Constructor
!!!! new COSA.PageInfo(pagingCookie, returnTotalRecordCount)
|| Param || Type || Description ||
| pagingCookie | {{string}} | Paging cookie |
| returnTotalRecordCount | {{boolean}} | Return total record count |
!!! Properties
|| Name || Type || Description ||
| count | {{number}} | Count |
| pageNumber | {{number}} | Page number |
| pagingCookie | {{string}} | Paging cookie |
| returnTotalRecordCount | {{boolean}} | Return total record count |
[Back to Top|#tbl_contents_0]
{anchor:lib_queryexpression_0}
!! QueryExpression
!!! Constructor
!!!! new COSA.QueryExpression(entityLogicalName, columnSet, criteria)
|| Param || Type || Description ||
| entityLogicalName | {{string}} | Entity logical name |
| columnSet | {{COSA.ColumnSet}} |  |
| criteria | [COSA.FilterExpression|#lib_filterexpression_0] | Filter expression |
!!! Properties
|| Name || Type || Description ||
| entityLogicalName | {{string}} | Entity logical name |
| columnSet | {{COSA.ColumnSet}} | Column set |
| criteria | [COSA.FilterExpression|#lib_filterexpression_0] | Filter expression |
| distinct | {{boolean}} | Distinct |
| linkEntities | Array.<[COSA.LinkEntity|#lib_linkentity_0]> | Link entities |
| orders | Array.<[COSA.OrderExpression|#lib_orderexpression_0]> | Orders |
| noLock | {{boolean}} | No lock |
| pageInfo | [COSA.PageInfo|#lib_pageinfo_0] | Page info |
[Back to Top|#tbl_contents_0]
{anchor:lib_relationship_0}
!! Relationship
!!! Constructor
!!!! new COSA.Relationship(schemaName)
|| Param || Type || Description ||
| schemaName | {{string}} | Schema name |
!!! Properties
|| Name || Type || Description ||
| schemaName | {{string}} | Schema name |
| primaryEntityRole | {{string}} | Primary Entity Role |
[Back to Top|#tbl_contents_0]
{anchor:lib_xrmboolean_0}
!! XrmBoolean
!!! Constructor
!!!! new COSA.XrmBoolean(value)
|| Param || Type || Description ||
| value | {{boolean}} | Boolean value |
!!! Properties
|| Name || Type || Description ||
| value | {{boolean}} | Boolean value |
[Back to Top|#tbl_contents_0]
{anchor:lib_xrmdatetime_0}
!! XrmDateTime
!!! Constructor
!!!! new COSA.XrmDateTime(value, formattedValue)
|| Param || Type || Description ||
| value | {{Date}} | Date value |
| formattedValue | {{string}} | Formatted values |
!!! Properties
|| Name || Type || Description ||
| value | {{Date}} | Date value |
| formattedValue | {{string}} | Formatted values |
[Back to Top|#tbl_contents_0]
{anchor:lib_xrmdecimal_0}
!! XrmDecimal
!!! Constructor
!!!! new COSA.XrmDecimal(value)
|| Param || Type || Description ||
| value | {{number}} | Double number value |
!!! Properties
|| Name || Type || Description ||
| value | {{number}} | Double number value |
[Back to Top|#tbl_contents_0]
{anchor:lib_xrmdouble_0}
!! XrmDouble
!!! Constructor
!!!! new COSA.XrmDouble(value)
|| Param || Type || Description ||
| value | {{number}} | Double number value |
!!! Properties
|| Name || Type || Description ||
| value | {{number}} | Double number value |
[Back to Top|#tbl_contents_0]
{anchor:lib_xrmguid_0}
!! XrmGuid
!!! Constructor
!!!! new COSA.XrmGuid(guidStr)
|| Param || Type || Description ||
| guidStr | {{string}} | GUID string |
!!! Properties
|| Name || Type || Description ||
| value | {{string}} | GUID string |
[Back to Top|#tbl_contents_0]
{anchor:lib_xrmmoney_0}
!! XrmMoney
!!! Constructor
!!!! new COSA.XrmMoney(value, formattedValue)
|| Param || Type || Description ||
| value | {{number}} | Money value |
| formattedValue | {{string}} | Formatted value |
!!! Properties
|| Name || Type || Description ||
| value | {{number}} | Money value |
| formattedValue | {{string}} | Formatted value |
[Back to Top|#tbl_contents_0]
{anchor:lib_xrmstring_0}
!! XrmString
!!! Constructor
!!!! new COSA.XrmString(value)
|| Param || Type || Description ||
| value | {{string}} | String value |
!!! Properties
|| Name || Type || Description ||
| value | {{string}} | String value |
[Back to Top|#tbl_contents_0]
{anchor:lib_xrmwholenumber_0}
!! XrmWholeNumber
!!! Constructor
!!!! new COSA.XrmWholeNumber(value)
|| Param || Type || Description ||
| value | {{number}} | Whole number value |
!!! Properties
|| Name || Type || Description ||
| value | {{number}} | Whole number value |
[Back to Top|#tbl_contents_0]